package cn.edu.pku.wxlib.vo.response;

import cn.org.rapid_framework.util.DateConvertUtils;
import javacommon.base.BaseEntity;

public class TeacherUser extends BaseEntity implements java.io.Serializable{
	private java.lang.Integer userId;
	private java.lang.Integer teacherId;
	private java.lang.String userName;
	private java.lang.String name;
	private java.lang.String password;
	private java.util.Date birth;
	private java.lang.Integer gender;
	private java.lang.String tel;
	private java.lang.String phone;
	private java.lang.String email;
	private java.lang.Integer type;
	private java.lang.Integer borrowTypeId;
	private java.util.Date createTime;
	private java.lang.Integer state;
	private java.lang.String teacherNumber;
	private java.lang.String department;
	private java.lang.String direction;
	private java.lang.String title;
	private java.lang.String office;

	public java.lang.Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(java.lang.Integer teacherId) {
		this.teacherId = teacherId;
	}

	public java.lang.Integer getRelatedId() {
		return teacherId;
	}
	
	public java.lang.String getTeacherNumber() {
		return teacherNumber;
	}

	public void setTeacherNumber(java.lang.String teacherNumber) {
		this.teacherNumber = teacherNumber;
	}

	public java.lang.String getDepartment() {
		return department;
	}

	public void setDepartment(java.lang.String department) {
		this.department = department;
	}

	public java.lang.String getTitle() {
		return title;
	}

	public void setTitle(java.lang.String title) {
		this.title = title;
	}

	public java.lang.String getOffice() {
		return office;
	}

	public void setOffice(java.lang.String office) {
		this.office = office;
	}

	public TeacherUser(){
	}

	public TeacherUser(
		java.lang.Integer userId
	){
		this.userId = userId;
	}

	public java.lang.String getDirection() {
		return direction;
	}

	public void setDirection(java.lang.String direction) {
		this.direction = direction;
	}

	public void setUserId(java.lang.Integer value) {
		this.userId = value;
	}
	
	public java.lang.Integer getUserId() {
		return this.userId;
	}
	public void setUserName(java.lang.String value) {
		this.userName = value;
	}
	
	public java.lang.String getUserName() {
		return this.userName;
	}
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	public void setPassword(java.lang.String value) {
		this.password = value;
	}
	
	public java.lang.String getPassword() {
		return this.password;
	}
	
	public void setBirth(java.util.Date value) {
		this.birth = value;
	}
	
	public java.util.Date getBirth() {
		return this.birth;
	}
	public void setGender(java.lang.Integer value) {
		this.gender = value;
	}
	
	public java.lang.Integer getGender() {
		return this.gender;
	}
	public void setTel(java.lang.String value) {
		this.tel = value;
	}
	
	public java.lang.String getTel() {
		return this.tel;
	}
	public void setPhone(java.lang.String value) {
		this.phone = value;
	}
	
	public java.lang.String getPhone() {
		return this.phone;
	}
	public void setEmail(java.lang.String value) {
		this.email = value;
	}
	
	public java.lang.String getEmail() {
		return this.email;
	}
	public void setType(java.lang.Integer value) {
		this.type = value;
	}
	
	public java.lang.Integer getType() {
		return this.type;
	}
	public void setBorrowTypeId(java.lang.Integer value) {
		this.borrowTypeId = value;
	}
	
	public java.lang.Integer getBorrowTypeId() {
		return this.borrowTypeId;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	public void setState(java.lang.Integer value) {
		this.state = value;
	}
	
	public java.lang.Integer getState() {
		return this.state;
	}
	//date formats
	public static final String FORMAT_BIRTH = DATE_FORMAT;
	public static final String FORMAT_CREATE_TIME = DATE_FORMAT;
	public String getBirthString() {
		return DateConvertUtils.format(getBirth(), FORMAT_BIRTH);
	}
	public void setBirthString(String value) {
		setBirth(DateConvertUtils.parse(value, FORMAT_BIRTH,java.util.Date.class));
	}
	public String getCreateTimeString() {
		return DateConvertUtils.format(getCreateTime(), FORMAT_CREATE_TIME);
	}
	public void setCreateTimeString(String value) {
		setCreateTime(DateConvertUtils.parse(value, FORMAT_CREATE_TIME,java.util.Date.class));
	}
}